﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Admin.Core.DbModel.sys/sys_opts_log 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       sys_opts_log
* 创建时间：  2025/6/4 10:46:07
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using SSPivot.Data.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Admin.Core.DbModel.sys
{
    /// <summary>
    /// 操作日志
    /// </summary>
    public class sys_opts_log : AuditedCreateEntity<long>
    {
        /// <summary>
        /// 租户Id
        /// </summary>  
        public long? TenantId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(100)]
        public string? Name { get; set; }

        /// <summary>
        /// IP
        /// </summary>
        [StringLength(100)]
        public string? IP { get; set; }

        /// <summary>
        /// 国家
        /// </summary>
        [StringLength(100)]
        public string? Country { get; set; }

        /// <summary>
        /// 省份
        /// </summary>
        [StringLength(100)]
        public string? Province { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        [StringLength(100)]
        public string? City { get; set; }

        /// <summary>
        /// 网络服务商
        /// </summary>
        [StringLength(100)]
        public string? Isp { get; set; }

        /// <summary>
        /// 浏览器
        /// </summary>
        [StringLength(100)]
        public string? Browser { get; set; }

        /// <summary>
        /// 操作系统
        /// </summary>
        [StringLength(100)]
        public string? Os { get; set; }

        /// <summary>
        /// 设备
        /// </summary>
        [StringLength(50)]
        public string? Device { get; set; }

        /// <summary>
        /// 浏览器信息
        /// </summary>
        public string? BrowserInfo { get; set; }

        /// <summary>
        /// 耗时（毫秒）
        /// </summary>
        public long ElapsedMilliseconds { get; set; }

        /// <summary>
        /// 操作状态
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 操作消息
        /// </summary>
        public string? Msg { get; set; }
        /// <summary>
        /// 接口名称
        /// </summary>
        [StringLength(50)]
        public string? ApiLabel { get; set; }

        /// <summary>
        /// 接口地址
        /// </summary>
        [StringLength(500)]
        public string? ApiPath { get; set; }

        /// <summary>
        /// 接口方法
        /// </summary>
        [StringLength(50)]
        public string? ApiMethod { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>

        public string? Params { get; set; }

        /// <summary>
        /// 状态码
        /// </summary>
        public int? StatusCode { get; set; }

        /// <summary>
        /// 响应结果
        /// </summary>

        public string? Result { get; set; }
    }
}
